#include "T_LayoutScn.h"


bool T_Layout::OnInit( GAF_CBundle* pParam )
{
	GAF_SSize _sWindow = GAF_pTHEWINDOW->GetSize_a();

	m_pimgBack = GAF_CImage::Create("./res/Image.jpg");
	m_pimgBack->SetLocation((int)_sWindow.nWidth >> 1, _sWindow.nHeight >> 1);
	m_pimgBack->SetAnchor_a(GAF_ANCHOR_HCENTER | GAF_ANCHOR_VCENTER);
	AddGraphics(m_pimgBack);

	m_pimgWin = GAF_CImage::Create("./res/Window.bmp");
	m_pimgWin->SetLocation((int)_sWindow.nWidth >> 1, _sWindow.nHeight >> 1);
	m_pimgWin->SetAnchor_a(GAF_ANCHOR_HCENTER | GAF_ANCHOR_VCENTER);
	AddGraphics(m_pimgWin);

	return true;
}

bool T_LayoutScn::OnInit(GAF_CBundle* pParam)
{
	m_Layout.Init();

	LoadLayout(&m_Layout);

	return true;
}